<td> | <%= link_to 'Show', category_links.category_id.nil? ? category_links : category_articles_path(category_links) %></td>
<td><%= link_to 'Edit', edit_category_path(category_links) %></td>
<td><%= link_to 'X', category_links, :confirm => 'Are you sure?', :method => :delete %></td>
<td> | <%= link_to "создать продукт в даной категории", new_category_article_path(category_links) unless category_links.category_id.nil?%></td>
